is not set to 1, then write conflicts could occur if two instances of the execute sql task attempted to write to the table at the same time 不設(shè)置為1,那么如果兩個(gè)“執(zhí)行sql”任務(wù)實(shí)例試圖同時(shí)寫入,則會(huì)發(fā)生表寫入沖突。
most thread-safety issues arise when multiple threads are trying to modify an object s state concurrently write-write conflicts or when one thread is trying to access an object s state while another thread is modifying it read-write conflicts 大多數(shù)的線程安全問題發(fā)生在當(dāng)多個(gè)線程正在試圖并發(fā)地修改一個(gè)對(duì)象的狀態(tài)(寫-寫沖突)時(shí),或當(dāng)一個(gè)線程正試圖訪問一個(gè)對(duì)象的狀態(tài),而另一個(gè)線程正在修改它(讀-寫沖突)時(shí)。
most thread-safety issues arise when multiple threads are trying to modify an object s state concurrently write-write conflicts or when one thread is trying to access an object s state while another thread is modifying it read-write conflicts 大多數(shù)的線程安全問題發(fā)生在當(dāng)多個(gè)線程正在試圖并發(fā)地修改一個(gè)對(duì)象的狀態(tài)(寫-寫沖突)時(shí),或當(dāng)一個(gè)線程正試圖訪問一個(gè)對(duì)象的狀態(tài),而另一個(gè)線程正在修改它(讀-寫沖突)時(shí)。
as long as immutable objects are constructed properly which means not letting the object reference escape from the constructor, they are exempt from the requirement to synchronize access, becuase their state cannot be changed and therefore cannot have write-write or read-write conflicts 只要正確構(gòu)造了不變對(duì)象(這意味著不讓對(duì)象引用從構(gòu)造函數(shù)中轉(zhuǎn)義),就使它們免除了同步訪問的要求,因?yàn)闊o法更改它們的狀態(tài),從而就不可能存在寫-寫沖突或讀-寫沖突。
for example, if a package can run multiple tasks concurrently, a foreach loop container that enumerates files in the folder, retrieves the file names, and then uses an execute sql task to insert the file names into a table may incur write conflicts when two instances of the execute sql task attempt to write at the same time 例如,如果包可以并發(fā)運(yùn)行多個(gè)任務(wù),那么當(dāng)一個(gè)foreach循環(huán)容器枚舉文件夾中的文件,然后檢索文件名,然后使用執(zhí)行sql任務(wù)將文件名插入表中時(shí),如果在兩個(gè)執(zhí)行sql任務(wù)實(shí)例都試圖同時(shí)寫入,就有可能導(dǎo)致寫入沖突。
air conflicts: 空中爭斗armed conflicts: 武裝沖突channel conflicts: 渠道沖突civil conflicts: 國內(nèi)沖突conflicts of interest: 利益沖突culture conflicts: 文化碰撞diverging conflicts: 分流沖突點(diǎn)dramatic conflicts: 戲劇沖突dysfunctional conflicts: 消極沖突functional conflicts: 積極沖突hardware conflicts: 硬件相沖; 硬體相沖local conflicts: 局部沖突median conflicts: 中央沖突點(diǎn)merging conflicts: 并流沖突點(diǎn)resolve conflicts: 解決沖突separation of conflicts: 分隔沖突點(diǎn);沖突點(diǎn)的分隔trade conflicts: 貿(mào)易沖突world conflicts: 世界沖突write: vt. (wrote , 〔古語〕 writ; written , 〔古語〕 writ) 1.寫,記,錄,抄,謄;填寫;簽發(fā);簽訂;簽署。 2.寫作,著作。 3.銘記(心中),留印象于;【計(jì)算機(jī)】寫入,存入;寫印〔從記憶系統(tǒng)中發(fā)出或印出數(shù)據(jù)〕。 4.寫信給;把…函告。 5.把…寫入[寫成為];通過寫作使…成為某種狀態(tài)。 write a check 開支票。 write a letter 寫信。 write to a friend 寫信給朋友。 write it in your hat 〔美國〕絕對(duì)確實(shí),真真實(shí)實(shí)。 He writes himself “General”. 他自稱“將軍”。 He has “coast” written all over him. 他渾身上下是海濱氣息[他是海邊長大的]。 vi. 1.寫字。 2.寫文章;著作;作曲。 3.寫信,寄信,通信。 4.做書記,做抄寫員。 5.(筆被使用時(shí))有某種表現(xiàn);好寫。 This pen writes (well). 這支筆好寫[好使]。 write cleverly 文章寫得好。 write a good [bad] hand 字寫得好[壞]。 write down 1. 寫下來,記下來。 2. 用文字攻擊,貶低,批評(píng) (write him down a fool 在文章里說他是傻瓜)。 3. 減低賬面價(jià)值。 4. 把…撥作公積金,攤提資產(chǎn)。 write for 1. 替(報(bào)紙等)撰稿,投稿;為(生活)寫文章。 2. 寫信訂購。 write in 寫進(jìn)去,插入(文件中)。 write in [for] the paper 投稿給(報(bào)紙)。 write off 1. 勾銷,注銷(債款等);報(bào)廢。 2. 流暢地寫,當(dāng)場(chǎng)寫,提筆就寫(文章等)。 3. 減低資產(chǎn)賬面額。 write out 1. 寫出;謄清,繕寫。 2. (作家等)寫得寫不出,寫枯了腦筋。 write over 1. 改寫,重寫。 2. 寫滿。 write up 1. 寫在高處,揭示;用文字贊揚(yáng),書面表揚(yáng)。 2. 一直寫到最近事情;詳細(xì)寫。 3. 提高賬面價(jià)值;評(píng)價(jià)過高。 4. 〔美國〕開傳票傳喚。 write in: 某語言或材料; 提出書面要求; 寫入寫數(shù)存入write in for: 向商行寫信提要求/意見write on: 寫(在什么地方)write to: 給……寫信; 寫到; 寫信給..; 寫信給某人; 致函write with: 某工具write-in: n. 1.投票人另提名候選人的投票。 2.候選人名單外被寫進(jìn)選票的人。 adj. 投票人可在選票上另提候選人的選舉。